import { http } from '@/package_tools/utils/request.js'

enum Urls {
	storeList = 'mini/store/list',
	storeDetail = 'mini/store/detail',
	storeCreate = 'mini/store/add',
	storeEdit = 'mini/store/edit',
	storeSignIn = 'mini/store/sign_in',
	storeSignLog = 'mini/store/sign_log',
	settleStoreList = 'mini/settle/store_list',
	paymentList = 'mini/settle/payment_list',
	report = 'mini/board/report',
	warehouseEntrance = 'mini/warehouse/entrance',
	outStock = 'mini/warehouse/out_stock',
	inStock = 'mini/warehouse/in_stock',
	deliveryList = 'mini/delivery/list',
	deliveryDetail = 'mini/delivery/detail',
}

// 业务员端门店列表
export const storeList = (params) => http.get(Urls.storeList, params)

// 业务员端门店详情
export const storeDetail = (params) => http.get(Urls.storeDetail, params)

// 业务员端门店新增
export const storeCreate = (data) => http.post(Urls.storeCreate, data)

// 业务员端门店编辑
export const storeEdit = (data) => http.post(Urls.storeEdit, data)

//门店签到
export const storeSign = (params) => http.post(Urls.storeSignIn, params)

//签到日志
export const storeSignLog = (params) => http.get(Urls.storeSignLog, params)

// 金额门店列表
export const settleStoreList = (params) => http.get(Urls.settleStoreList, params)

// 账期账单列表
export const paymentList = (params) => http.get(Urls.paymentList, params)

// 经营报表
export const report = (params) => http.get(Urls.report, params)

// 仓库
export const warehouseEntrance = (params) => http.get(Urls.warehouseEntrance, params)

// 出库明细
export const outStock = (params) => http.get(Urls.outStock, params)

// 入库明细
export const inStock = (params) => http.get(Urls.inStock, params)

// 物流配送
export const deliveryList = (params) => http.get(Urls.deliveryList, params)

// 物流详情
export const deliveryDetail = (params) => http.get(Urls.deliveryDetail, params)